<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>list</title>
    <%--<link rel="stylesheet" href="<%=request.getContextPath()%>/resources/css/main.css" type="text/css">--%>
</head>
<body>
<h2>用户列表</h2>
<table width="800" cellspacing="10" cellpadding="10">
    <tr align="center">
        <th>id</th>
        <th>用户名</th>
        <th>密码</th>
        <th>昵称</th>
        <th width="200">操作</th>
    </tr>
    <c:forEach items="${listStudent}" var="vm">
        <tr align="center">
            <td>${vm.studentId}</td>
            <td>${vm.studentName}</td>
            <td>${vm.studentPassword}</td>
            <td>${vm.studentNickname}</td>
            <td width="300">
                <a href="${vm.studentId}/delete">删除</a>&nbsp;<a href="${vm.studentId}/update">更新</a>
            </td>
        </tr>
    </c:forEach>

</table>
<div class="pageturn">
    <a class="pre">上一页</a>
    <span class="nowpage">第<a>1</a>页</span>
    <a class="next">下一页</a>
</div>
<h3 class="adduser"><a href="add">Add User</a></h3>
</body>
</html>
